<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>JQuery动态事件处理</title>
		<link rel="stylesheet" type="text/css" href="css/txt.css" />
		<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>
		<input type="button" value="按我"><br/>
		<input type="button" value="按我"><br/>
		<input type="button" value="按我"><br/>
	</body>

	<script type="text/javascript">
		$(function() {
			// 只执行一次事件的绑定
			$(":button").one("click",function(){
				alert("只出现一次");
			})
		});
	</script>

</html>